package cn.huiyunche.base.service.enums;

public enum MessageTypeEnum {
    CONFIRMCARRIER(1030, "确认承运方");

    private final int value;
    private final String text;

    MessageTypeEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static MessageTypeEnum getByValue(int value) {
        for (MessageTypeEnum temp : MessageTypeEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
